package org.ch00.test03.entity;

/**
 * @author CSY
 * @date 2025 - 03 - 03
 */
public class Lion extends Animal {
    public Lion() {}

    public Lion(String name, int age) {
        super(name, age);
    }

    public void eat(){
        System.out.println("吃肉...");
        super.eat();
    }

    public void eat(String name){
        System.out.println(name + "在吃肉...");
        super.eat();
    }

    public void sleep(int hour){
        System.out.println(this.getName() + "睡了" + hour + "小时");
    }
}
